//
//  ZFBCycleFlowLayout.m
//  02-图片无线轮播
//
//  Created by jieChen on 17/1/17.
//  Copyright © 2017年 jieChen. All rights reserved.
//

#import "ZFBCycleFlowLayout.h"

@implementation ZFBCycleFlowLayout

- (void)prepareLayout
{
    [super prepareLayout];
    
    // 让cell的大小和图片大小一样
    self.itemSize = self.collectionView.bounds.size;
    
    // 清空最小列和行间距
    self.minimumLineSpacing = 0;
    self.minimumInteritemSpacing = 0;
    
    // 更改为水平方向
    self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    
    // 开启分页
    self.collectionView.pagingEnabled = YES;
    // 影藏滚动条
    self.collectionView.showsVerticalScrollIndicator = NO;
    self.collectionView.showsHorizontalScrollIndicator = NO;
    // 关闭蛋黄效果
    self.collectionView.bounces = NO;
}



@end
